package com.memorypalace.pojo;

import java.util.Date;

public class Card {

	private String cardId;//卡片Id  主键
	private String cardStyleId;//卡片样式id
	private String noteId;
	private Date cardNextStudyTime;//下次学习时间
	private Integer cardHardFactory;//难度系数
	private Integer cardStudyCount;//学习次数
	private Integer cardWrongCount;//失误次数
	
	private Note note;
	private Deck deck;
	private CardStyle cardStyle;
	public Card(){}
	
	public Card(String cardId, Date cardNextStudyTime,String noteId,Integer cardHardFactory, Integer cardStudyCount,
			Integer cardWrongCount, String cardStyleId) {
		super();
		this.cardId = cardId;
		this.cardNextStudyTime = cardNextStudyTime;
		this.noteId = noteId;
		this.cardHardFactory = cardHardFactory;
		this.cardStudyCount = cardStudyCount;
		this.cardWrongCount = cardWrongCount;
		this.cardStyleId = cardStyleId;
	}

	public String getCardId() {
		return cardId;
	}

	public void setCardId(String cardId) {
		this.cardId = cardId;
	}

	public Date getCardNextStudyTime() {
		return cardNextStudyTime;
	}

	public void setCardNextStudyTime(Date cardNextStudyTime) {
		this.cardNextStudyTime = cardNextStudyTime;
	}


	public String getNoteId() {
		return noteId;
	}

	public void setNoteId(String noteId) {
		this.noteId = noteId;
	}

	public Integer getCardHardFactory() {
		return cardHardFactory;
	}

	public void setCardHardFactory(Integer cardHardFactory) {
		this.cardHardFactory = cardHardFactory;
	}

	public Integer getCardStudyCount() {
		return cardStudyCount;
	}

	public void setCardStudyCount(Integer cardStudyCount) {
		this.cardStudyCount = cardStudyCount;
	}

	public Integer getCardWrongCount() {
		return cardWrongCount;
	}

	public void setCardWrongCount(Integer cardWrongCount) {
		this.cardWrongCount = cardWrongCount;
	}

	public String getCardStyleId() {
		return cardStyleId;
	}

	public void setCardStyleId(String cardStyleId) {
		this.cardStyleId = cardStyleId;
	}

	@Override
	public String toString() {
		return "Card [cardId=" + cardId + ", cardStyleId=" + cardStyleId + ", noteId=" + noteId + ", cardNextStudyTime="
				+ cardNextStudyTime + ", cardHardFactory=" + cardHardFactory + ", cardStudyCount=" + cardStudyCount
				+ ", cardWrongCount=" + cardWrongCount + "]";
	}

	public Note getNote() {
		return note;
	}

	public void setNote(Note note) {
		this.note = note;
	}

	public Deck getDeck() {
		return deck;
	}

	public void setDeck(Deck deck) {
		this.deck = deck;
	}

	public CardStyle getCardStyle() {
		return cardStyle;
	}

	public void setCardStyle(CardStyle cardStyle) {
		this.cardStyle = cardStyle;
	}

}
